package com.example.study_thread.i_synchronized;

public class Test01 {
    public static void main(String[] args) {
//        因为票只有100张，所以这里只new一次，分别传入
        MyTicket myTicket = new MyTicket();

        Thread t1 = new Thread(myTicket, "赵四");
        Thread t2 = new Thread(myTicket, "刘能"); 
        Thread t3 = new Thread(myTicket, "广坤");

        t1.start();
        t2.start();
        t3.start();
    }
}
